home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programmer Power Tools
/
Programmer Power Tools.iso
/
microcrn
/
issue_38.arc
/
KAYPRO38.FIG
< prev
next >
Wrap
Text File
|
1987-09-21
|
1KB
|
54 lines
;Kaypro Column Figure 2
;Figure 2 - Undocumented Z80 Codes
;****************************************
; T3.ASM
;TEST OF UNDOC. Z80 CODES SPEED.
;****************************************
ORG 100H
START:
LD E,0FFH
LD C,6
CALL 5
OR A
JP Z,START ;WAIT FOR KEYPRESS
CALL SHOWX
DB 0DDH ;SET UP OUTER LOOP
LD H,0FFH
OUTLP:
DB 0FDH ;SET UP MIDDLE LOOP
LD H,0FFH
MIDLP:
DB 0FDH ;SET UP INNER LOOP
LD L,0FFH
INLP:
DB 0FDH
DEC L
JP NZ,INLP
DB 0FDH
DEC H
JP NZ,MIDLP
DB 0DDH
DEC H
JP NZ,OUTLP
CALL SHOWX
RET
SHOWX: LD E,7 ;BELL
CALL CONOUT
LD E,`X'
CONOUT: LD C,6
CALL 5
RET
;*****************************************
END ;OF T3.ASM
;*****************************************